{% extends "base.html" %}
{% block title %} Szczegółowe informacje o reklamie{% endblock %}
{% block content %} 
<style>
	#content-div {
		padding:0;
	}
	#ad {
		padding:10px;
		margin-right:325px;
		height:100%;
	}
	#author {
		padding:10px;
		width:300px;
		height:100%;
		float:right;
		border:2px solid #f58193;
	}
	
	#details {
		border:2px solid floralwhite;
		padding:5px;
	}
</style>
<div id="author">
	<p>Autor reklamy:</p>
	{{ad.author.user.first_name}} {{ad.author.user.last_name}}
	{% if ad.show_contact_data %}
	<p>Dane Kontaktowe:</p>
	{{ad.author.user.email}}{% if ad.author.phone %}, {{ad.author.phone}}{% endif %}
	{% endif %}
</div>
<div id="ad">
	<h2>{{ad.city}} , {{ ad.street }} {% if ad.house_number %} {{ ad.house_number }} {% endif %}</h2>
	
	<p id="details"> {{ ad.description}} </div>
</div>
	
{% endblock %}
